package com.willpower.eureka.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author wen-yi
 * @since 2021-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysPassword对象", description="")
public class SysPassword extends Model<SysPassword> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "拥有者ID")
    private Integer owner;

    @ApiModelProperty(value = "服务器类型")
    private String cloudType;

    @ApiModelProperty(value = "云ip")
    private String cloudIp;

    @ApiModelProperty(value = "操作类型")
    private String executeType;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @TableField("`out`")
    @ApiModelProperty(value = "是否过时")
    private String out;

    @ApiModelProperty(value = "描述")
    private String comment;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
